import React from 'react';
import Preview from './preview';
import { useLocation } from '@umijs/max';

export default function PortalHome() {
  const location = useLocation();
  return <Preview session="render" personal={location.pathname.includes('/portal/module')} />;
}
